
/**
 * 人员管理
 */

import request from "@/utils/request.js"

// 获取课程列表 / 搜索
export function getPersonnelListApi(params) {
  return request({
    url: '/examination/personnel/list',
    method: 'POST',
    params
  })
}

// 获取部门下拉列表
export function getOrganizationListApi() {
  return request({
    url: '/examination/organization/parentOrganizationList',
    method: 'POST',
  })
}

// 添加
export function addPersonnelApi(params) {
  return request({
    url: "/examination/personnel/add",
    method: 'POST',
    params
  })
}

// 删除
export function delPersonnelApi(params) {
  return request({
    url: "/examination/personnel/remove",
    method: 'POST',
    params
  })
}

// 修改
export function updatePersonnelApi(params) {
  return request({
    url: "/examination/personnel/edit",
    method: 'POST',
    params
  })
}

// 导出
export function exportApi() {
  return request({
    url: "/examination/personnel/export",
    responseType: 'blob',
    method: 'POST',
  })
}

// 导入
export function importApi(params) {
  return request({
    url: "/examination/personnel/importData",
    ContentType: 'multipart/form-data',
    method: 'POST',
    params
  })
}
